#ifndef GLOBAL_H
#define GLOBAL_H

#ifdef RELEASE
#define QT_NO_DEBUG
#define QT_NO_DEBUG_OUTPUT
#define QT_NO_WARNING_OUTPUT
#else
#ifdef QT_NO_DEBUG
#undef QT_NO_DEBUG
#endif
#endif

#define PROGRAM_NAME "cob"
#define PROGRAM_COMP "hust.cs.free"
#define PROGRAM_VERSION "0.6"
#define RPOGRAM_AUTHOR  "TaleBook@Gmail.com"

#ifndef QT_NO_DEBUG_OUTPUT
#include <iostream>
#define DEBUG_F(x)				\
	do {					\
	    std::cout << ":: " << __FILE__ 	\
	    << " : \t"<< __FUNCTION__ << "()"	\
	    << std::endl;			\
	} while (0)
#else
#define DEBUG_F(x)				\
	do {					\
	} while (0)
#endif
/**
 * These three timer is used to check many things.
 * It's set by the main() and the ConfigureWindow
 */
#include <QTimer>
extern QTimer gExtremeTimer;
extern QTimer gFastTimer;
extern QTimer gTimer;
extern QTimer gSlowTimer;

#endif
